-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Aggregate] Correctly handle ordering multiple fields; don't crash on nil #174
Conversation
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #174 +/- ##
==========================================
+ Coverage 46.39% 47.15% +0.76%
==========================================
Files 47 47
Lines 17828 17876 +48
==========================================
+ Hits 8271 8430 +159
+ Misses 8111 7983 -128
- Partials 1446 1463 +17 |
query_test.go
Outdated
name: "array_concat_agg with null in order by", | ||
query: `WITH toks AS (SELECT ['1'] AS x, '1' as y UNION ALL SELECT ['2', '3'], null) SELECT ARRAY_CONCAT_AGG(x ORDER BY y) FROM toks`, | ||
expectedRows: [][]interface{}{{ | ||
[]interface{}{"3", "2", "1"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried this query in the BigQuery Console and got results 2, 3, 1
.
What do you think about this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2, 3, 1
seems correct. I'll take a look at what's going on.
It looks like there was also previously a bug with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your awesome PR !! LGTM 👍
Closes #145
Closes goccy/bigquery-emulator#198
Closes #144